package com.itcast.demo.heap;

import org.openjdk.jol.info.ClassLayout;

/**
 * 一个对象占用内存大小测试
 *
 * @author zheng.zhang
 */
public class HeapMemory {

    public static void main(String[] args) {
        Object obj = new Object();
        System.out.println(ClassLayout.parseInstance(obj).toPrintable());
    }
}
